package kr.saeildamil.androidstudty.ch04;

import kr.saeildamil.androidstudty.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;

public class ButtonAndEditText extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.buttonandedittext);
	}
	
	public void mOnClick(View v){
		EditText et = (EditText) findViewById(R.id.btnandedit_edit);
		String str = et.getText().toString();
		Toast.makeText(this, "EditText에 입력한 글자는 " + str, Toast.LENGTH_LONG).show();
	}
}
